/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.invoice.busines;

import com.invoice.busines.dto.ComprobanteDTO;
import com.invoice.exceptions.InvoiceException;
import com.invoice.enums.TipoComprobante;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 *
 * @author Lidia
 */
public interface ComprobanteBO {
    public List<ComprobanteDTO> findAll() throws InvoiceException;
    public ComprobanteDTO addComprobante(ComprobanteDTO comprobanteDTO)throws InvoiceException;
    public void updateComprobante(ComprobanteDTO comprobanteDTO)throws InvoiceException;
    public ComprobanteDTO findComprobante(String codigoComprobante)throws InvoiceException;
    public List<TipoComprobante> findTiposComprobante() throws Exception;
    public void delete(ComprobanteDTO comprobanteDTO) throws InvoiceException;

    public List<ComprobanteDTO> findGroupByFecha() throws InvoiceException;
    public BigDecimal findTotalGroupByFecha(Date fecha) throws InvoiceException;
    
}
